package com.example.administrator.yuejian35.Find.adapter;


import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.administrator.yuejian35.R;
import com.example.administrator.yuejian35.button.ShineButton;


/**
 * Created by JUSTIN on 2017/9/26.
 */

public class PostViewHolder extends RecyclerView.ViewHolder {

    public ImageView pic,userpic;
    public TextView name,like;
    public static RelativeLayout relativelayout;
    public ShineButton hit;

    public View itemView;  //添加监听器

    public PostViewHolder(View itemView) {
        super(itemView);

        this.itemView = itemView;

        name = (TextView) itemView.findViewById(R.id.post_uname);
        like= (TextView) itemView.findViewById(R.id.post_like);
        pic= (ImageView) itemView.findViewById(R.id.post_pic);
        userpic= (ImageView) itemView.findViewById(R.id.post_userpic);
        hit = (ShineButton) itemView.findViewById(R.id.post_hit);
        relativelayout = (RelativeLayout) itemView.findViewById(R.id.relative_post);

    }
}
